package org.system.core.mapper.system;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.system.core.domain.entity.SysUserRole;

import java.util.List;

/**
* @author baoRoot
* @description 针对表【sys_user_role(用户和角色关联表)】的数据库操作Mapper
* @createDate 2024-11-05 14:17:49
* @Entity org.system.core.domain.entity.SysUserRole
*/
@Mapper
public interface SysUserRoleMapper {
    int deleteRole(Long roleId);
    int batchUserRole(List<SysUserRole> userRoleList);
    int deleteUserRoleByUserId(Long userId);
    int deleteUserRole(Long[] ids);
    int countUserRoleByRoleId(Long roleId);
    int deleteUserRoleInfo(SysUserRole userRole);
    int deleteUserRoleInfos(@Param("roleId") Long roleId, @Param("userIds") Long[] userIds);
}




